package _1需求;

public class Coder {

	public String name;
	
	public void coding() throws InterruptedException
	{
		System.out.println(name+"开始敲代码");
		for(int i=0;i<60;i++)
		{
			System.out.println(name+"敲代码中");
			Thread.sleep(100);
		}
		System.out.println(name+"完成敲代码");
	}
	
	public void listen() throws InterruptedException
	{
		System.out.println(name+"开始听音乐");
		for(int i=0;i<60;i++)
		{
			System.out.println(name+"听音乐中");
			Thread.sleep(100);
		}
		System.out.println(name+"完成听音乐");
	}
}
